package com.supcon.exchangedata.pojo.entity.oracle;

import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.Objects;

@Entity
@Data
@Table(name = "CT_BUS_ROUTE_INFO")
public class CtBusRouteInfo {
    @Basic
    @Column(name = "ROUTEID")
    private String routeid;
    @Basic
    @Column(name = "SUBROUTEID")
    private String subrouteid;
    @Basic
    @Column(name = "SEGMENTID")
    private String segmentid;
    @Basic
    @Column(name = "ROUTENAME")
    private String routename;
    @Basic
    @Column(name = "ROUTETYPE")
    private String routetype;
    @Basic
    @Column(name = "FSTSENDTIME")
    private String fstsendtime;
    @Basic
    @Column(name = "LSTSENDTIME")
    private String lstsendtime;
    @Basic
    @Column(name = "SEGMENTNAME")
    private String segmentname;
    @Basic
    @Column(name = "SNGMILE")
    private Long sngmile;
    @Basic
    @Column(name = "SUBID")
    private String subid;
    @Basic
    @Column(name = "BIZ_TIME")
    private LocalDateTime bizTime;
    @Basic
    @Column(name = "LOAD_TIME")
    private LocalDateTime loadTime;
    @Basic
    @Column(name = "ID")
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ctBusRouteInfoSeq")
    @SequenceGenerator(name = "ctBusRouteInfoSeq", sequenceName = "SEQ_CT_BUS_ROUTE_INFO", allocationSize = 1)
    private BigInteger id;
}
